package com.newbee.sustainability.web.service;

import com.newbee.sustainability.dao.SysUserMapper;
import com.newbee.sustainability.pojo.SysUser;
import com.newbee.sustainability.pojo.SysUserExample;
import com.newbee.sustainability.web.dao.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IUserServiceImpl implements IUserService {

    @Autowired
    private SysUserMapper sysUserMapper;

    @Override
    public void save(SysUser user) {
        int insert = sysUserMapper.insert(user);
    }

    @Override
    public List<SysUser> findAll() {
        return sysUserMapper.selectByExample(new SysUserExample());
    }
}
